/**
 * Created by chenkuan on 2017/3/31.
 */
var config = require('../config/config');
var config_trade_area = config.server.trade_area;// 选择sit作为数据库
var config_report = config.server.report;// 选择sit作为数据库

var DAO = require('../core/DAO');
const db_trade_area= new DAO('dataScreenDAO', config_trade_area);
const db_report= new DAO('dataScreenDAO', config_report);

// 获取商品售罄率
db_report.getSoldOutRate = function(){}

// 获取区域 GMV
db_trade_area.getAreaGmv = function(){}

// 获取商品实时订单
db_report.getOrder = function(last){}

module.exports = {
    getSoldOutRate: db_report.getSoldOutRate,
    getAreaGmv: db_trade_area.getAreaGmv,
    getOrder: db_report.getOrder
};
